package com.zdya.combatdocuments.util;

import cn.hutool.http.HttpResponse;

public class HttpUtil {

    public static String createPost(String url, String param){
        try {

            HttpResponse response = cn.hutool.http.HttpUtil.createPost(url).contentType("application/json").body(param).execute();
            if(response !=null && response.isOk()){
               return response.body();
            }
            return "";

        }catch (Exception e){
            e.printStackTrace();
            return "";
        }
    }
}
